import Vue from "vue";

import VueRouter from "vue-router";

import Main from '../view/Main'

import Login from '../view/Login'

import Register from '../view/Register'

//安装路由

Vue.use(VueRouter);

//配置导出路由
export default new VueRouter({
  routes:[
    {
      path:'/Main',
      name:'Main',
      component: Main
    },
    {
      path:'/Login',
      name:'Login',
      component: Login
    },
    {
      path:'/Register',
      name:'Register',
      component: Register
    }
  ]
});
